package com.seeqool.v1;

import java.awt.event.ActionListener;

import javax.swing.JButton;

public class IconButton extends JButton {

	private static final long serialVersionUID = 1L;

	public IconButton(String icon, String toolTip, ActionListener listener, String actionCommand) {
		super();
		setToolTipText(toolTip);
		setIcon(ImageLibrary.get(icon));
		setActionCommand(actionCommand);
		addActionListener(listener);
	}
}
